<template>
	<view class="container">
		<!-- 顶部标题栏 -->
		<view class="header">
			<view class="header-content">
				<view class="back-button" @click="goBack">
					<u-icon name="arrow-left" color="#000" size="20"></u-icon>
				</view>
				<view class="title">本地向导设置</view>
				<view class="placeholder"></view>
			</view>
		</view>

		<!-- 内容区域 -->
		<view class="content">
			<view class="btnItem" @click="handleToEdit">
				<view class="btnItem-left">
					<image src="/static/authentication/guideEdit.png" mode="aspectFit"></image>
					<view>向导编辑资料</view>
				</view>
				<view class="btnItem-right">
					<u-icon name="arrow-right" color="#000" size="20"></u-icon>
				</view>
			</view>

			<view class="btnItem" @click="handleToConfig">
				<view class="btnItem-left">
					<image src="/static/authentication/guideUP.png" mode="aspectFit"></image>
					<view>上架服务设置</view>
				</view>
				<view class="btnItem-right">
					<u-icon name="arrow-right" color="#000" size="20"></u-icon>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		onLoad() {},
		methods: {
			goBack() {
				uni.navigateBack();
			},
			handleToEdit() {
				uni.navigateTo({
					url: '/pages_sub/authentication/Guide/editInformation'
				});
			},
			handleToConfig() {
				uni.navigateTo({
					url: '/pages_sub/authentication/Guide/ListingService'
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	.container {
		min-height: 100vh;
		background: linear-gradient(to bottom, #FCC951, #FFECBE);
		display: flex;
		flex-direction: column;
	}

	/* 顶部标题栏样式 */
	.header {
		width: 100%;
		background: transparent;

		.header-content {
			padding-top: var(--status-bar-height);
			height: 88rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			position: relative;

			.back-button {
				width: 60rpx;
				height: 60rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-left: 20rpx;
			}

			.title {
				font-size: 36rpx;
				font-weight: bold;
				color: #000;
				position: absolute;
				left: 50%;
				transform: translateX(-50%);
			}

			.placeholder {
				width: 60rpx;
				height: 60rpx;
				margin-right: 20rpx;
			}
		}
	}

	/* 内容区域 */
	.content {
		flex: 1;
		padding: 20rpx 30rpx;
	}

	/* 按钮项样式 */
	.btnItem {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 40rpx;
		padding: 0 30rpx;
		background-color: #fff;
		height: 120rpx;
		border-radius: 20rpx;
		box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);

		.btnItem-left {
			display: flex;
			align-items: center;
			font-weight: 700;
			font-size: 32rpx;
			color: #333;

			image {
				margin-right: 20rpx;
				width: 48rpx;
				height: 48rpx;
			}
		}

		.btnItem-right {
			display: flex;
			align-items: center;
		}
	}
</style>